#
# Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

load("@com_github_grpc_grpc//bazel:cc_grpc_library.bzl", "cc_grpc_library")
load("@com_google_protobuf//bazel:cc_proto_library.bzl", "cc_proto_library")
load("@com_google_protobuf//bazel:java_proto_library.bzl", "java_proto_library")
load("@com_google_protobuf//bazel:proto_library.bzl", "proto_library")
load("@io_grpc_grpc_java//:java_grpc_library.bzl", "java_grpc_library")
load("@rules_cc//cc:cc_library.bzl", "cc_library")
load("@rules_java//java:defs.bzl", "java_library")

package(
    default_visibility = ["//zetasql/base:zetasql_implementation"],
)

proto_library(
    name = "sql_compliance_service_proto",
    srcs = ["sql_compliance_service.proto"],
    deps = [
        "//zetasql/compliance:test_driver_proto",
        "//zetasql/proto:options_proto",
        "@com_google_protobuf//:empty_proto",
    ],
)

cc_proto_library(
    name = "sql_compliance_service_cc_proto",
    deps = [":sql_compliance_service_proto"],
)

cc_grpc_library(
    name = "sql_compliance_service_cc_grpc",
    srcs = [":sql_compliance_service_proto"],
    grpc_only = True,
    deps = [":sql_compliance_service_cc_proto"],
)

java_proto_library(
    name = "sql_compliance_service_java_proto",
    deps = [":sql_compliance_service_proto"],
)

java_grpc_library(
    name = "sql_compliance_service_java_grpc",
    srcs = [":sql_compliance_service_proto"],
    deps = [":sql_compliance_service_java_proto"],
)
